import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)//

// 导入底部导航组件
import home from '../components/tabbar/home.vue'
import vip from '../components/tabbar/vip.vue'
import shopcar from '../components/tabbar/shopcar.vue'
import search from '../components/tabbar/search.vue'
import newslist from '../components/news/newslist.vue'
import newsContent from '../components/news/newsContent.vue'

export default new Router({
  routes: [
    {path:'/',redirect:'home'},
    {path:'/home',component:home},
    {path:'/vip',component:vip},
    {path:'/shopcar',component:shopcar},
    {path:'/search',component:search},
    {path:'/news/newslist',component:newslist},
    {path:'/news/newslist/:id',component:newsContent}
  ],
  linkActiveClass:'mui-active'
})
